package com.bit.demo1.java;

public class catplus {
        private String name;
        private int age;
        private String sex;
        //猫plus的构造函数
        public catplus(String name, int age, String sex) {
            this.name = name;
            this.age = age;
            this.sex = sex;
            System.out.println("调用了包demo2中的catplus类中带三个参数的构造函数");
        }

        @Override
        public String toString() {
            return "catplus{" +
                    "猫plus的name='" + name + '\'' +
                    ", 猫plus的age=" + age +
                    ", 猫plus的sex='" + sex + '\'' +
                    '}';
        }


    public static void main(String[] args) {
        catplus catplus2=new catplus("jili",44,"女");
        System.out.println(catplus2);
    }
}
